﻿using BenchmarkDotNet.Attributes;
using Flurl.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace FlurlSample.Context
{
    [CoreJob]
    public class FlurlContext
    {
        public List<string> Urls
        {
            get
            {
                var _urls = new List<string>();
                _urls.Add("https://www.baidu.com");
                return _urls;
            }
        }

        [ParamsSource(nameof(Urls))]
        public string Url { get; set; }
        [Benchmark]
        public async Task GetAsync()
        {
            //var rt = await Url.GetStringAsync();
            var rt = await "https://www.baidu.com".GetStringAsync();
        }
    }
}
